source/rx/disposable.d(292,40): Error: variable `rx.disposable.NopDisposable.instance.inst` __gshared not allowed in safe functions; use shared source/rx/disposable.d(293,29): Error: `@safe` function `rx.disposable.NopDisposable.instance` cannot call `@system` function `std.concurrency.initOnce!(inst).initOnce` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/concurrency.d(2598,10): `std.concurrency.initOnce!(inst).initOnce` is declared here source/rx/disposable.d(328,41): Error: variable `rx.disposable.DisposedMarker.instance.inst` __gshared not allowed in safe functions; use shared source/rx/disposable.d(329,29): Error: `@safe` function `rx.disposable.DisposedMarker.instance` cannot call `@system` function `std.concurrency.initOnce!(inst).initOnce` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/concurrency.d(2598,10): `std.concurrency.initOnce!(inst).initOnce` is declared here source/rx/disposable.d(342,57): Error: cast from `rx.disposable.Disposable` to `shared(Disposable)` not allowed in safe code source/rx/disposable.d(350,31): Error: cast from `rx.disposable.Cancelable` to `shared(Cancelable)` not allowed in safe code source/rx/disposable.d(359,61): Error: cast from `rx.disposable.Cancelable` to `shared(Cancelable)` not allowed in safe code /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/parallelism.d(429,36): Error: cannot implicitly convert expression `& impl` of type `void function(void* myTask) @system` to `void function(void*)` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../phobos/std/parallelism.d(869,16): Error: template instance `std.parallelism.Task!(run, void delegate())` error instantiating source/rx/scheduler.d(159,23): instantiated from here: `task!(void delegate())` source/rx/scheduler.d(972,5): Error: `@safe` function `_sharedStaticCtor_L970_C1` cannot access `__gshared` data `s_scheduler` source/rx/scheduler.d(978,12): Error: `@safe` function `currentScheduler` cannot access `__gshared` data `s_scheduler` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.